package cn.sunlight.city.service.impl;

import cn.sunlight.city.mapper.CityMapper;
import cn.sunlight.city.mapper.ProvinceMapper;
import cn.sunlight.city.mapper.TownMapper;
import cn.sunlight.city.pojo.City;
import cn.sunlight.city.pojo.Province;
import cn.sunlight.city.pojo.Town;
import cn.sunlight.city.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: CityServiceImpl
 * @Description: TODO
 * @Author: sunlight
 * @Date: 12:01 - 2022/2/10
 * @Version: 1.0
 **/
@Service
public class CityServiceImpl implements CityService {

    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public List<Province> findProvince() {

        return provinceMapper.findProvinceAll();
    }
}
